const bcrypt = require('bcryptjs') //引入密码加密模块
const tools={
    enbcrypt(password){
        const salt=bcrypt.genSaltSync(10)
        const hash=bcrypt.hashSync(password,salt)
        return hash
    }
}

module.exports=tools